using Wolfpack.Core.Interfaces.Entities;

namespace Wolfpack.Contrib.Publishers.MongoDb
{
    public class MongoDbConfiguration : PluginConfigBase
    {
        public string ServerName { get; set; }
        public int? Port { get; set; }
        public string DatabaseName { get; set; }
        public string CollectionName { get; set; }

        public bool AutoIndexId { get; set; }
        public bool Capped { get; set; }
        public long? Max { get; set; }
        public int? Size { get; set; }
        public bool UseAsRepository { get; set; }

        internal string StatusCollectionName
        {
            get
            {
                return CollectionName + "Status";
            }
        }
    }
}